<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/jsp/taglibs-nojs-nocss.jsp"%>
<%@ page isELIgnored="false" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<div id="pop_up_content">
	<div class="pop_up_title images_13">
		新建月度销售单
	</div>
	<div class="pop_up_body">
		<form id="tableEdit" action="saveTable.action" >
			<input type="hidden" value="<s:property value='#session.user.userId'/>" name="tableVo.user.id"/>
			<input type="hidden" value="<s:property value='tableVo.id'/>" name="tableVo.id"/>
			<table border="0" cellpadding="0" cellspacing="0" width="450px">
				<tr style="height:22px;">
					<td class="form_input_value">
							<span class="red">*</span>客户名称
					</td>
					<td  colspan="3">
						<input style="width:260" id="tableVo.customer" name="tableVo.customer" type="text" value="${tableVo.customer}" class="required validate_forbiddenChar max_length:40">
					</td>
				</tr>
				<tr style="height:22px;">
					<td class="form_input_value">
							<span class="red">*</span>项目名称
					</td>
					<td  colspan="3">
						<input style="width:260" id="tableVo.projectName" name="tableVo.projectName" type="text" value="${tableVo.projectName}" class="required validate_forbiddenChar max_length:40">
					</td>
				</tr>
				<tr style="height:22px;">
					<td class="form_input_value">
							<span class="red">*</span>销售日期
					</td>
					<td  colspan="3">
						<input style="width:260" onclick="WdatePicker();" readonly="readonly" id="tableVo.outDate" name="tableVo.outDate"  value="${tableVo.outDate}"  type="text" class="required validate_forbiddenChar max_length:40">
					</td>
				</tr>
				<tr style="height:22px;">
					<td class="form_input_value">
							<span class="red">*</span>销售金额
					</td>
					<td  colspan="3">
						<input style="width:260" id="tableVo.money" name="tableVo.money" type="text" value="${tableVo.money}" class="required validate_forbiddenChar max_length:40">
					</td>
				</tr>
				<tr style="height:22px;">
					<td></td>
					<td colspan="3">
						<input id="tableButton" type="button" value="确定" class="btn" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'">
						<input type="button" value="取消" class="btn" onclick="hideDialog()" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'">
					</td>
				</tr>
			</table>
		</form>
	</div>
</div>
<script>
	
	/* 表单提交 */
	i.formSubmit("tableButton",	//绑定的按钮id
					  "tableEdit" ,   //提交的表单id
					  function(result){
						  	var jsonMsgObj=new JsonMsgObj(result);
							var  msg=jsonMsgObj.getMessage();
						    var codeId=jsonMsgObj.getCodeid();
							var isOk=jsonMsgObj.getIsok();
							if( isOk ){
							    aerouiAlert(msg);
								hideDialog();// 隐藏窗口
								window.location.reload();
							}else{		// 如果编辑失败了
							  JsManageInfoHandleException( result , function(msg , codeId , isOk){
							  		hideDialog();// 隐藏窗口
							   });
						   }
						});
</script>